package com.kxmall.huishou.mapper;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.kxmall.common.core.domain.PageQuery;
import com.kxmall.huishou.domain.HsAppointmentOrder;
import com.kxmall.huishou.domain.bo.HsAppointmentOrderBo;
import com.kxmall.huishou.domain.vo.HsAppointmentOrderVo;
import com.kxmall.common.core.mapper.BaseMapperPlus;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * 回收预约订单信息Mapper接口
 *
 * @author kxmall
 * @date 2023-11-23
 */
public interface HsAppointmentOrderMapper extends BaseMapperPlus<HsAppointmentOrderMapper, HsAppointmentOrder, HsAppointmentOrderVo> {

    Page<HsAppointmentOrderVo> selectVoPageNew(Page<Object> build, @Param("query")HsAppointmentOrderBo query);

    HsAppointmentOrderVo selectVoByIds(@Param("id")Long id);

    Long countMinuteByRiderId(@Param("riderId")Long riderId);

    Long countOrderByRiderIdAndStatus(@Param("riderId")Long riderId,@Param("statusList") String statusList, @Param("startTime") Date startTime, @Param("endTime") Date endTime);

    Page<HsAppointmentOrderVo> selectVoPageForAddress(IPage<HsAppointmentOrder> page, @Param("query") HsAppointmentOrderBo query);

    Page<HsAppointmentOrderVo> selectVoPageForTime(IPage<HsAppointmentOrder> page, @Param("query") HsAppointmentOrderBo query);
}
